<?php foreach ($juniorMember->result() as $key => $val ): ?>
    <li>
        <a class="flex" href="<?php echo site_url('home/memberprofit/grid/'.$val->uid.'/'.$val->user_name); ?>">
            <div class="userphoto">
                <img src="<?php echo $this->config->show_image_url($val->personal_photo);?>">
                <p class="tig1"><?php echo $val->user_type_name['type_zh'];?></p>
            </div>
            <div class="details flex-1">
                <p>用户编号：<?php echo $val->uid;?></p>
                <p class="username">用户名：<?php echo $val->user_name;?></p>
                <p>昵称：<?php echo $val->alias_name;?></p>
                <div class="yaoqing-time"> 邀请时间：<?php echo $val->created_at?></div>
            </div>
        </a>
    </li>
<?php endforeach ?>